package com.tt.dp.factory.method;

import com.tt.dp.factory.model.CheesePizza;
import com.tt.dp.factory.model.Pizza;

public class NYPizzaStore extends PizzaStore {

    @Override
    Pizza createPizza(String type) {

        Pizza pizza = null;

        if("1".equals(type)){
            pizza = new CheesePizza();
        }

        return pizza;
    }
}
